import axios from '../../util/request'

//文章分类列表
export const categorlist = (val) => {
    return axios.get(`/adminapi/cms/category?status=${val.status}&page=${val.page}&limit=${val.limit}&type=${val.type}&title=${val.title}`);
};

//文章分类开关转换
export const categorswitch = (val) => {
    return axios.put(`/adminapi/cms/category/set_status/${val.id}/${val.switchs}`);
};

//文章分类删除
export const categordel = (val) => {
    return axios.delete(`/adminapi/cms/category/${val}`);
};